package c.e.a.b.e.c;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public class j5 {
    public volatile e6 a;
    public volatile t3 b;

    static {
        h4.a();
    }

    public final int a() {
        if (this.b != null) {
            return this.b.c();
        }
        return this.a != null ? this.a.b() : 0;
    }

    /* JADX WARNING: Missing exception handler attribute for start block: B:9:0x0012 */
    /* JADX WARNING: Can't wrap try/catch for region: R(6:7|8|9|10|11|12) */
    public final c.e.a.b.e.c.e6 b(c.e.a.b.e.c.e6 r2) {
        /*
        r1 = this;
        r0 = r1.a;
        if (r0 != 0) goto L_0x001d;
    L_0x0004:
        monitor-enter(r1);
        r0 = r1.a;	 Catch:{ all -> 0x001a }
        if (r0 == 0) goto L_0x000b;
    L_0x0009:
        monitor-exit(r1);	 Catch:{ all -> 0x001a }
        goto L_0x001d;
    L_0x000b:
        r1.a = r2;	 Catch:{ e5 -> 0x0012 }
        r0 = c.e.a.b.e.c.t3.b;	 Catch:{ e5 -> 0x0012 }
        r1.b = r0;	 Catch:{ e5 -> 0x0012 }
        goto L_0x0018;
    L_0x0012:
        r1.a = r2;	 Catch:{ all -> 0x001a }
        r2 = c.e.a.b.e.c.t3.b;	 Catch:{ all -> 0x001a }
        r1.b = r2;	 Catch:{ all -> 0x001a }
    L_0x0018:
        monitor-exit(r1);	 Catch:{ all -> 0x001a }
        goto L_0x001d;
    L_0x001a:
        r2 = move-exception;
        monitor-exit(r1);	 Catch:{ all -> 0x001a }
        throw r2;
    L_0x001d:
        r2 = r1.a;
        return r2;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.e.c.j5.b(c.e.a.b.e.c.e6):c.e.a.b.e.c.e6");
    }

    public final t3 c() {
        if (this.b != null) {
            return this.b;
        }
        synchronized (this) {
            t3 t3Var;
            if (this.b != null) {
                t3Var = this.b;
                return t3Var;
            }
            if (this.a == null) {
                this.b = t3.b;
            } else {
                this.b = this.a.a();
            }
            t3Var = this.b;
            return t3Var;
        }
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof j5)) {
            return false;
        }
        j5 j5Var = (j5) obj;
        e6 e6Var = this.a;
        e6 e6Var2 = j5Var.a;
        if (e6Var == null && e6Var2 == null) {
            return c().equals(j5Var.c());
        }
        if (e6Var != null && e6Var2 != null) {
            return e6Var.equals(e6Var2);
        }
        if (e6Var != null) {
            return e6Var.equals(j5Var.b(e6Var.g()));
        }
        return b(e6Var2.g()).equals(e6Var2);
    }

    public int hashCode() {
        return 1;
    }
}
